package com.mvp.shq.washer.ui.shop.order.ordertake;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.result.OrderDataListResult;
import com.mvp.shq.washer.entity.shop.result.OrderDataResult;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import io.reactivex.Observable;

/**
 * Created by westing on 2017/10/11.
 */

public class Model implements OrderTakeConstract.Model {
    @Override
    public Observable<BaseResult<String>> confirmGoods(String token, String userId, String orderNo) {
        return ShopApi.getInstance().service
                .confirmGoods(token,userId,orderNo)
                .compose(RxSchedulers.io_main());
    }

    @Override
    public Observable<BaseResult<OrderDataListResult>> getOrderDetail(String token, String userId, String orderId) {
        return ShopApi.getInstance().service
                .getOrderDetail(token,userId,orderId)
                .compose(RxSchedulers.io_main());
    }
}
